﻿using System.Web;
using System.Text;
using System.IO;
using System.Net;
using System;
using System.Collections.Generic;

namespace Alipay.Class
{
    /// <summary>
    /// 类名：Config
    /// 功能：支付宝配置公共类
    /// 详细：该类是配置所有请求参数，支付宝网关、接口，商户的基本参数等
    /// 版本：1.0
    /// 日期：2011-09-15
    /// 说明：
    /// 以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
    /// 该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
    /// </summary>
    public class Config
    {
        static Config()
        {
            Partner = "2088002649577169";
            Seller = "2088002649577169";
            privateKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKQrStCH6OlfaPVw5lr4Fnbv9CKe/g/qmP0eh5J8irKQK72+3uFprKq/yk7j8r1NYXhF7cnodWxKRk0fU6IEWVVryNt5I8Rnu1s3buLzMaPLHcHuOMQ6TbgivDCHKIbG145K3n083dl+CXpGc9hyPYQMY9M+prGmJRSAfn63WHBrAgMBAAECgYBHE49ClXUbhPlWOlkhTYO8XsseKiPpFDLEc/FSVKVgBddKQVcR1MSy8HJQkZRIrTXj8rKu1fvwtH+XaFa3MJbUGVr4PyU7xK5nJRdOutc9aNU0zyo/pKpa+3AhEMq/M8vPTbiu1y74K/OsaDQAcJXSHTIPsJA9i8/aXeBWf0qE8QJBANAuDZXX3jlIbLoxvfNl1+HCNsxDoQHxCV8BBOUMzmsjxCtAyiq0CyTNSTYbyDSSrdwGaJAQ6xUtox8hEwpRNb0CQQDJ4TM+bUYJHOoEyVXYR0rIeYA69T0R6KiTvYL/T5AF/7rOy0HcGmbV/1wZ/oUXzqYpr9GfDJlT6KUG1A+iHr1HAkEApKvJEz4uCiG/34h5OI7WtT1rGyhjs6V2RDAKLyRyI02nXo9hW2YPaoz33FUdiHh+Dg0DqPG5AoeXAIipBwA2AQJAHzz+rfFAvhZAS/9Pjkjx1HWglv7ttUC4HSxdAd6w3YzFvkwLY+Cd+w0plkghFh7+7UJsgFz1uNst9hGIXcC97wJBAKjdZuAOLVXS1cnYkjDQT2GQaf46Xp7jPjGqDcSq92SxnzCz/wkeXOa9J0d4YcwUQqF8IMMymjgIr8O+dT5CGDo=";
            notify_url = "http://121.11.69.86:8033/Notify.aspx";
            Input_charset_UTF8 = "utf-8";//必须为utf-8格式
            Alipaypublick = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCOzy6F84JqBSa5Ffz3RSAD+86MiO0Bo/tVaHQzCsRr0Ts3FNSNUVKApf5b5OyGUIXBeqtYe2jFOd2Z8OepdZApjYB8Sl5pU5DKEPPFpz4voMdG6tzXxI9I8kHO0N82sJS7axrMCFZsO6PtuWtpprZ2pOtlhl4op+PyyyoetdzjtwIDAQAB";
        }

        #region 属性

        /// <summary>
        /// 合作商户ID
        /// </summary>
        public static string Partner
        { get; set; }
        /// <summary>
        /// 卖家帐号
        /// </summary>
        public static string Seller
        { get; set; }
        /// <summary>
        /// 商户私钥
        /// </summary>
        public static string privateKey
        { get; set; }
        /// <summary>
        /// 支付宝公钥
        /// </summary>
        public static string Alipaypublick
        { get; set; }
        /// <summary>
        /// 编码格式UTF-8
        /// </summary>
        public static string Input_charset_UTF8
        { get; set; }
        /// <summary>
        /// Notify异步通知URL
        /// </summary>
        public static string notify_url
        { get; set; }

        #endregion
    }
}